package com.haidechizi.longpolling.event.listener;

import com.google.common.collect.Lists;
import com.haidechizi.longpolling.event.Event;

import java.util.List;

/**
 * @author wangdejun
 * @create 2021/2/24 13:52
 */
public abstract class SingleEventListener extends AbstractEventListener {

    /**
     * 感兴趣的时间
     *
     * @return
     */
    @Override
    public final List<Class<? extends Event>> interests() {
        return Lists.newArrayList(interest());
    }

    public abstract Class<? extends Event> interest();
}
